﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MainPage.aspx.cs" Inherits="MainPage" %>

<%@ Register Src="UserControls/MsgPlate.ascx" TagName="MsgPlate" TagPrefix="uc1" %>
<%@ Register Src="UserControls/ucPageFoot.ascx" TagName="ucPageFoot" TagPrefix="uc2" %>
<%@ Register Src="UserControls/ucPageHead.ascx" TagName="ucPageHead" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>国家测绘地理信息局行政许可网上办理大厅（备份页面-可删除）</title>
    <link rel="stylesheet" type="text/css" href="App_Themes/SkinFile/CSS/gcpage.css" />
   
    <link rel="stylesheet" type="text/css" href="App_Themes/SkinFile/CSS/StyleSheet.css" />
    <link rel="stylesheet" type="text/css" href="App_Themes/SkinFile/CSS/easyui.css" />
    <script type="text/javascript" src="ScriptFile/jquery.js"></script>
    <script type="text/javascript" src="ScriptFile/jquery.ui.core.js"></script>
    <script type="text/javascript" src="ScriptFile/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="ScriptFile/cookie.js"></script>
    <script type="text/javascript" src="ScriptFile/JqueryDragInterface.js"></script>
    <script src="ScriptFile/Common/Jquery.Global.js" type="text/javascript"></script>
    <script src="ScriptFile/Common/Jquery.Common.js" type="text/javascript"></script>
    <script type="text/javascript" src="ScriptFile/Calendar.js"></script>

    <script type="text/javascript" language="javascript">
        function clickUrl(strUrl) {
            window.open(strUrl);
        }
        
        //打开提示框
        function OpenConfirm() {
            //$('#divConfirm').window('resize', { height: 150, width: 400 });
            //$('#divConfirm').window('expand', '测试');
            $('#divConfirm').window('open');
        }

        //保存消息提示框的cookie
        function SaveCookie() {
            var ckvalue = "0";
            if ($("#cbxNotes").is(":checked")) {
                ckvalue = "1";
            }
            else {
                ckvalue = "0";
            }
            setCookie('confirmcookie', ckvalue);
            $('#divConfirm').window('close');
        }

        $(document).ready(function () {
            //获取session并设置提示框的内容
            GetServiceData("BindMessageText", "{}", LoadMsgText, "lblMessage");

            //清空DIV排序
            var cookie_string = getCookie("confirmcookie");
            if (cookie_string == "0" || cookie_string == "") {
                //当消息内容为空时,不用提示.
                var Contenct = document.getElementById('lblMessage').innerText;
                if (Contenct != "") {
                    OpenConfirm();
                }
            }

            //设置可拖动层
            var leftmod = new Array();
            $(".end_bar_small").css("cursor", "move");
            $(".box_box01").sortable({
                //connectWith: '.box_box01',
                placeholder: 'box_boxNew',

                opacity: 0.7, //模糊效果值
                //revert: true,
                stop: function (event, ui) {
                    saveLayout();
                }
            });
            $(".box_box01").disableSelection();

            //提取cookie的值，并按照保存的顺序移动div
            ChangeDiv();

            //提取cookie的值，并按照保存的顺序移动div
            ChangeDiv();
        });
        
         //添加行政许可查询功能 add by zhongjian 20091225
        function OpenQueryXuKe()
        {
            var flow=document.form1.ddlFlow.selectedIndex;
            var iid=document.form1.txtIID.value;
            var name=document.form1.txtName.value;
            var fromdate=document.form1.txtFromDate.value;
            var todate=document.form1.txtToDate.value;
            var strUrl="Wsbs/XingZhengXuKe.aspx";
            strUrl+="?flow="+flow+"&iid="+iid+"&name="+name+"&fromdate="+fromdate+"&todate="+todate+"";
            window.open(strUrl);
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
   <div id="divConfirm" class="easyui-window" title="国家测绘地理信息局行政许可网上办理大厅" data-options="modal:true,closed:true,iconCls:'icon-save',minimizable:false,maximizable
:false,collapsible:false" style="width:400px; height:150px; padding: 10px;">
        <span id="lblMessage"></span>
        <table style="width: 100%;">
            <tr>
                <td>
                    <input id="cbxNotes" type="checkbox" />下次不再提示
                </td>
                <td style="text-align: right">
                    <input id="btnOK" class="button" onclick="SaveCookie()" value="确定" type="button" /><input
                        id="btnClose" class="button" value="关闭" type="button" onclick="$('#divConfirm').window('close')" />
                </td>
            </tr>
        </table>
    </div>
    <div style="text-align: center">
        <table class="page_box" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td colspan="3">
                    <uc3:ucPageHead ID="ucPageHead1" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="box_box01" style="margin-right: 8px; width: 243px;" id='dragdiv1'>
                        <div id="div_bjyl">
                            <div class="end_bar_small">
                                办件情况一览</div>
                            <table width="90%" border="0" cellspacing="0" cellpadding="0" style="margin-top: 8px;
                                margin: 8px;">
                                <tr style="height: 20px">
                                    <td style="width: 30%">
                                        类型
                                    </td>
                                    <td>
                                        数量
                                    </td>
                                    <td style="width: 45%;">
                                        说明
                                    </td>
                                </tr>
                                <tr style="height: 20px">
                                    <td>
                                        <a href='wsbs/Tongzhi.aspx?query=1' target="_blank">通知</a>
                                    </td>
                                    <td>
                                        <%= GetMessageCount() %>
                                    </td>
                                    <td style="width: auto;">
                                        未读通知消息
                                    </td>
                                </tr>
                                <tr style="height: 20px">
                                    <td>
                                        <a href='wsbs/submit.aspx?flag=1' target="_blank">正在办理</a>
                                    </td>
                                    <td>
                                        <%= GetInstanceCount() %>
                                    </td>
                                    <td>
                                        正在办理事项
                                    </td>
                                </tr>
                                <tr style="height: 20px">
                                    <td>
                                        <a href='wsbs/submit.aspx?flag=0' target="_blank">新申请</a>
                                    </td>
                                    <td>
                                        <%= GetSubmitCount() %>
                                    </td>
                                    <td>
                                        尚未提交事项
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="div_dhsb">
                            <div class="end_bar_small">
                                导航申报
                            </div>
                            <table width="90%" border="0" cellspacing="0" cellpadding="0" style="height: 150px;
                                margin: 8px;">
                                <%= GetNavigation()%>
                            </table>
                        </div>
                        <div id="div_grxxgl">
                            <div class="end_bar_small">
                                个人信息管理
                            </div>
                            <table width="90%" style="height: 70px; margin: 8px;" border="0" cellspacing="0"
                                cellpadding="0">
                                <%= GetGeRen()%>
                            </table>
                        </div>
                        <div id="div_fwfk">
                            <img src="App_Themes/SkinFile/Images/page_left_button02.gif" alt="" class="left_img1"
                                onclick="clickUrl('wsbs/Fwfk.aspx');" border="0" />
                        </div>
                        <div id="div_bjtj">
                            <img src="App_Themes/SkinFile/Images/page_left_button01.gif" alt="" class="left_img"
                                onclick="clickUrl('wsbs/Lyzx.aspx');" border="0" />
                        </div>
                    </div>
                </td>
                <td valign="top">
                    <div class="page_bar">
                        <div class="page_bar_ico04">
                            行政许可事项
                        </div>
                    </div>
                    <div class="box_box01" id='dragdiv3' style="margin-right: 8px; border: 0px;">
                        <asp:Repeater ID="RepeaterWeb" runat="server">
                            <ItemTemplate>
                                <div id="div_xksx<%#Container.ItemIndex%>">
                                    <table class="page_c_box" border="0" cellspacing="6" style="margin-top: 2px;">
                                        <tr style="cursor: move">
                                            <%#GetTitleName(Container)%>
                                        </tr>
                                        <tr style="height: 45px;">
                                            <%#GetContent(Container)%>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </td>
                <td width="230" valign="top" style="text-align: left;">
                    <div class="box_box01" style="width: 221px; border: 0px;" id='dragdiv2'>
                        <div id="div_xxgg">
                            <div class="page_bar02" style="margin-top: 0px; padding-top: 0px;">
                                <div class="page_bar_ico02">
                                    信息公告
                                </div>
                            </div>
                            <div class="page_right_box">
                                <div style="margin-top: 10px; margin-left: 10px;">
                                    <uc1:MsgPlate runat="server" ID="msgXxgg" />
                                </div>
                                <div class="page_more">
                                    <a href="Wsbs/DetailOtherList.aspx?type=0" target="_blank">更多...</a>
                                </div>
                            </div>
                        </div>
                        <div id="div_lyzx">
                            <div class="page_bar02" style="margin-top: 0px; padding-top: 0px;">
                                <div class="page_bar_ico05">
                                    留言咨询
                                </div>
                            </div>
                            <div class="page_right_box">
                                <ul class="page_bar_ul" style="margin-left: 0px; padding-left: 0px;">
                                    <asp:Repeater ID="rptLYZX" runat="server">
                                        <ItemTemplate>
                                            <li><a href="Wsbs/LyzxMessage.aspx?id=<%# Eval("id")%>" target="_blank">
                                                <%# Eval("title")%></a></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                <div class="page_more">
                                    <a href="Wsbs/LyzxList.aspx" target="_blank">更多...</a>
                                </div>
                            </div>
                        </div>
                        <div id="div_cjwt">
                            <div class="page_bar02" style="margin-top: 0px; padding-top: 0px;">
                                <div class="page_bar_ico03">
                                    常见问题
                                </div>
                            </div>
                            <div class="page_right_box">
                                <ul class="page_bar_ul" style="margin-left: 0px; padding-left: 0px;">
                                    <asp:Repeater ID="rptAskQuestion" runat="server">
                                        <ItemTemplate>
                                            <li><a href="Wsbs/detail.aspx?id=<%# Eval("id")%>&type=1" target="_blank">
                                                <%# Eval("title")%></a></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                <div class="page_more">
                                    <a href="Wsbs/DetailOtherList.aspx?type=1" target="_blank">更多...</a>
                                </div>
                            </div>
                        </div>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center" valign="top">
                    <br />
                    <div class="end_bar">
                        行政许可公示</div>
                    <table bordercolor="#4fbff9" cellspacing="0" bordercolordark="#eaf0ff" cellpadding="1"
                        width="1000" align="center" bordercolorlight="#5eb4e1" border="1" style="font-weight: bold;
                        font-size: larger; color: Dodgerblue;">
                        <tr style="display: none">
                            <td colspan="6">
                                <div class="page_bar01">
                                    <div class="tdbox">
                                        受理编号
                                        <asp:TextBox ID="txtIID" runat="server" Width="90px"></asp:TextBox>
                                        办理事项<asp:DropDownList ID="ddlFlow" runat="server" Width="240px">
                                        </asp:DropDownList>
                                        申请单位<asp:TextBox ID="txtName" runat="server" Width="90px"></asp:TextBox>
                                        申请日期(从)
                                        <input onfocus="setday(this)" id="txtFromDate" runat="server" readonly="readonly"
                                            size="10" />
                                        到
                                        <input onfocus="setday(this)" id="txtToDate" runat="server" readonly="readonly" size="10" />
                                        <input id="btnQuery" type="button" value="查询" onclick="OpenQueryXuKe()" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr align="center" bgcolor="#dcedf6">
                            <td width="10%" height="20">
                                受理编号
                            </td>
                            <td width="25%" height="20">
                                办理事项
                            </td>
                            <td width="36%" height="20">
                                申请单位
                            </td>
                            <td width="8%">
                                办件状态
                            </td>
                            <td width="10%">
                                申请日期
                            </td>
                            <td width="10%">
                                应办结日期
                            </td>
                        </tr>
                    </table>
                    <div id="demo">
                        <div id="demo1">
                            <defineControls:CustomGridView ID="dgXkjggs" runat="server" AllowPaging="false" AutoGenerateColumns="false"
                                ShowItemNumber="false" SkinID="List" CheckboxAutoPostBack="False" CustomImportToExcel="false"
                                CustomSortExpression="" DeleteToolTipOfCol="-1" HideTextLength="20" ShowCmpAndCancel="False"
                                ShowGridViewSelect="List" ShowHideColModel="None" ShowImportButton="False" ShowTreeView="False"
                                SelectOrDelete="True" AllowSortingAscImgCss="" AllowSortingDescImgCss="" Width="1000"
                                OnOnLoadData="dgXkjggs_OnLoadData" ShowHeader="false" EmptyDataText=".">
                                <Columns>
                                    <asp:BoundField DataField="受理编号" HeaderText="受理编号" ItemStyle-Width="10%" ItemStyle-Height="20px" />
                                    <asp:BoundField DataField="受理事项" HeaderText="办理事项" ItemStyle-Width="25%" />
                                    <asp:BoundField DataField="申请单位" HeaderText="申请单位" ItemStyle-Width="36%" />
                                    <asp:BoundField DataField="办件状态" HeaderText="办件状态" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="申请日期" HeaderText="申请日期" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="应办结日期" HeaderText="应办结日期" ItemStyle-Width="10%" />
                                </Columns>
                            </defineControls:CustomGridView>
                        </div>
                        <div id="demo2">
                        </div>
                    </div>

                    <script type="text/javascript">
                        scrollText();
                    </script>

                    <asp:HiddenField ID="hfWorkPower" runat="server" Value="" />
                    <uc2:ucPageFoot ID="ucPageFoot1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
